package com.heo.music.player.dao;

import com.heo.music.player.entity.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * created on 2024-05-12 10:17
 *
 * @author 星天无极
 **/
public interface UserInfoDao extends JpaRepository<UserInfo, Integer> {
    Optional<UserInfo> findByUsernameAndPassword(String username, String password);

    boolean existsByUsername(String username);
}
